package com.winderinfo.yikaotianxia.ui.home;


import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

public class KeChengPagerAdapter extends FragmentPagerAdapter {

    private List<Fragment> list;
    private List<String> mTableList;

    public KeChengPagerAdapter(FragmentManager fm, List<Fragment> list, List<String> mTableList) {
        super(fm);
        this.list = list;
        this.mTableList = mTableList;
    }


    @Override
    public Fragment getItem(int i) {
        return list.get(i);
    }

    @Override
    public int getCount() {
        return list.size();
    }

    @Nullable
    @Override
    public CharSequence getPageTitle(int position) {
        return mTableList.get(position);
    }
}
